const list = document.querySelector('.list')
list.onclick = function () {
  this.style.display = 'none'
}
document.oncontextmenu = function (e) {
  e.preventDefault()
  let { pageX, pageY } = e
  list.style.top = pageY + 'px'
  list.style.left = pageX + 'px'
  list.style.display = 'block'
}
